<template>
  <div class="main" v-loading="loading">
    <iframe @load="onLoad" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe>
  </div>
</template>

<script setup lang="ts">
import { getTenantSign } from '@/utils/auth'

import { config } from '@/config/biz'

defineOptions({ name: 'RobotCustomer' })

const loading = ref(true)
const sign = getTenantSign()
const url = computed(() => {
  return `${config.ai_robot_server}/user/member/memberlist?sign=${sign}`
})

const onLoad = () => {
  loading.value = false
}
</script>

<style scoped>
.main {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: -20px;
}
#nav-col {
  display: none;
}
</style>
